﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AgencyEntityLib.BaseEntity;
 

public partial class iFrameAdmin_Settings : iAdmin_Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            grdSettings.DataSource = GetRridSource();
            DataBind();
 
        }
 
    }

    private string DepartmentID
    {
        get { return Request.QueryString[qDepartmentID]; }
    }

    private Department Department
    {
        get { return _wsAgency.GetDepartment(DepartmentID); }
    }

    private List<lvItem_Setting> GetRridSource()
    { 
        List<lvItem_Setting>  List = new List<lvItem_Setting> ();
        List.Add (new lvItem_Setting { ID ="AdressProgram", Name ="Адресная программа" , Value ="0"});
        return List; 
    }

    protected class lvItem_Setting
    {
        public string ID { get; set; }
        public string Name {get;set;}
        public string Value { get; set; }
    }
    protected void BtnEdit_Click(object sender, EventArgs e)
    {
        Response.Redirect ("~\\iFarmeAdmin_AdressPrograms.aspx?FolderID"+ GlobalConstants.TreeDictionaryFolderType_System);   

    }
}
